package com.lzx.adx.report.enums;

public enum KsjsCovertGtdEventTypeEnums {

    register("1","ACTIVATE_APP","新增注册"),
    START_APP("2","START_APP","次日留存");


    /**
     * 快手极速code
     */
    private String ksjsCode;

    /**
     * 广点通code
     */
    private String gdtCode;

    private String msg;


    public String getKsjsCode() {
        return ksjsCode;
    }

    public String getGdtCode() {
        return gdtCode;
    }

    public String getMsg() {
        return msg;
    }

    /**
     * 根据快手极速code ,找到广点通code
     * @param ksjsCode
     * @return
     */
    public static String getGTdCode(String ksjsCode){
        for (KsjsCovertGtdEventTypeEnums value : KsjsCovertGtdEventTypeEnums.values()) {
            if(value.getKsjsCode().equals(ksjsCode)){
                return value.getGdtCode();
            }
        }
        return  null;
    }


    KsjsCovertGtdEventTypeEnums(String ksjsCode, String gdtCode, String msg) {
        this.ksjsCode = ksjsCode;
        this.gdtCode = gdtCode;
        this.msg = msg;
    }
}
